import request from '@/utils/request'

// 更新产品省长信息
export function updateCardCommodityOperatorInfo(data) {
  return request({
    url: 'api/update-commodity-operator-info',
    method: 'post',
    data: data
  })
}

// 更新产品团队信息
export function updateCommodityTeamInfo(data) {
  return request({
    url: 'api/update-commodity-team-info',
    method: 'post',
    data: data
  })
}

// 更新产品团队分销佣金信息
export function updateCommodityDistributorInfo(data) {
  return request({
    url: 'api/update-commodity-distributor-info',
    method: 'post',
    data: data
  })
}

// 管辖范围内，当前产品团队信息
export function getCommodityTeamInfo(commodityId, operatorId) {
  return request({
    url: 'api/get-commodity-team-info?commodity_id=' + commodityId + '&team_operator_id=' + operatorId,
    method: 'get'
  })
}
